'use strict';

function collect_all_even(collection) {
  let result=[];
  for(let item of collection){
    if(item%2==0){
      result.push(item);
    }
  }
  console.log(result);
  return result;
}

module.exports = collect_all_even;
collect_all_even([1, 2, 3, 4, 5]);